home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 96 / PC Zone #096.7z / Dppcz1200.mdf / Demos / Gunlok / data1.cab / Program_Executable_Files / scripts / fragprojectile.gsh < prev    next >
Text File  |  2000-09-09  |  1KB  |  67 lines

  1. //Projectile effects for explosions
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_FRAGPROJECTILE_GSH
  8. #define INCLUDED_FRAGPROJECTILE_GSH
  9.  
  10. ////////////////////////////////////////////////////////////////////////////////////
  11.  
  12. light Lit_FragProjectile
  13. {
  14.     red             1.0
  15.     green           0.8
  16.     blue            0.4
  17.     specular red    1.0
  18.     specular green    0.4
  19.     specular blue    0.2
  20.     range           5.0
  21. }
  22.  
  23. pgenerator Pgn_FragProjectile
  24. {
  25.     type smoke
  26.     life infinite    // well, it lasts as longs as the projectile it's attached to anyway
  27.     rate 60
  28.     // stream direction
  29.     x 0 y 0 z 0
  30.     // particle colour
  31.     red 0.1 green 0.1 blue 0.1 alpha 1.0
  32.     // scale
  33.     start scale 0.4    end scale 0.0
  34.     spin 10000
  35. }
  36.  
  37. shape Shp_FragProjectile
  38. {
  39.     file "objects\debris.rif"
  40.     name "debris"
  41. }
  42.  
  43. projectile Prj_FragProjectile
  44. {
  45.     gravity        yes // is this missile affected by gravity
  46.     damage        3 // in strength points
  47.     max range    4000
  48. }
  49.  
  50. role Rol_FragProjectile : Rol_DefaultProjectile
  51. {
  52.     pgen        Pgn_FragProjectile
  53.  
  54.     shape        Shp_FragProjectile
  55.  
  56.     light        Lit_FragProjectile
  57.  
  58.     projectile    Prj_FragProjectile
  59.  
  60.     identifier    "frag_projectile"
  61.  
  62.     nolighting    yes    //so it looks bright
  63.  
  64. }
  65.  
  66. //end wrapper
  67. #endif    // INCLUDED_FRAGPROJECTILE_GSH